package com.eedi.framework.info.convert;

import com.eedi.framework.info.controller.org.vo.OrgInfoAdminUserResp;
import com.eedi.framework.info.controller.org.vo.OrgInfoResp;
import com.eedi.framework.info.dal.dataobject.OrgInfoDO;
import com.eedi.framework.org.controller.sys.vo.OrgAdminUserResp;
import com.eedi.framework.org.controller.sys.vo.SysOrgInfoResp;
import com.eedi.framework.user.controller.org.vo.OrgUserLoginInfoResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;


@Mapper
public interface OrgInfoConvert {

    OrgInfoConvert INSTANCE = Mappers.getMapper(OrgInfoConvert.class);

    OrgInfoResp convert(OrgInfoDO orgUserDO);

    List<OrgInfoResp> convert(Collection<OrgInfoDO> orgInfos);

    SysOrgInfoResp convert(OrgInfoResp resp);

    OrgAdminUserResp convert(OrgInfoAdminUserResp resp);

    List<OrgAdminUserResp> convertList(List<OrgInfoAdminUserResp> resps);

    List<OrgInfoAdminUserResp> convertListAdminUsers(List<OrgUserLoginInfoResp> resps);
}
